package com.ruoyi.ky450.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 目标附件对象 target_attachment
 *
 * @author ruoyi
 * @date 2025-01-20
 */
public class TargetAttachment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 目标基本信息id */
    @Excel(name = "目标基本信息id")
    private Long targetBaseInfoId;

    /** 附件名称 */
    @Excel(name = "附件名称")
    private String attachmentName;

    /** 附件地址 */
    @Excel(name = "附件地址")
    private String attachmentPath;

    /** 附件类型(0:图片 1:视频) */
    @Excel(name = "附件类型(0:图片 1:视频)")
    private Integer attachmentType;

    /** 附件大小 */
    @Excel(name = "附件大小")
    private Long attachmentSize;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTargetBaseInfoId() {
        return targetBaseInfoId;
    }

    public void setTargetBaseInfoId(Long targetBaseInfoId) {
        this.targetBaseInfoId = targetBaseInfoId;
    }

    public String getAttachmentName() {
        return attachmentName;
    }

    public void setAttachmentName(String attachmentName) {
        this.attachmentName = attachmentName;
    }

    public String getAttachmentPath() {
        return attachmentPath;
    }

    public void setAttachmentPath(String attachmentPath) {
        this.attachmentPath = attachmentPath;
    }

    public Integer getAttachmentType() {
        return attachmentType;
    }

    public void setAttachmentType(Integer attachmentType) {
        this.attachmentType = attachmentType;
    }

    public Long getAttachmentSize() {
        return attachmentSize;
    }

    public void setAttachmentSize(Long attachmentSize) {
        this.attachmentSize = attachmentSize;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("targetBaseInfoId", getTargetBaseInfoId())
            .append("attachmentName", getAttachmentName())
            .append("attachmentPath", getAttachmentPath())
            .append("attachmentType", getAttachmentType())
            .append("attachmentSize", getAttachmentSize())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
